package com.vigor.bear.webapp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.session.RowBounds;
import com.vigor.bear.webapp.bean.Message;
import com.vigor.bear.webapp.dao.MessageMapper;
import com.vigor.bear.webapp.service.MessageService;
import org.springframework.stereotype.Service;

@Service
public class MessageServiceImpl implements MessageService {

    @Resource
    private MessageMapper msgmapper;

    @Override
    public int post(Message message) {
        return msgmapper.post(message);
    }

    @Override
    public int delete(int mid) {
        return msgmapper.delete(mid);
    }

    @Override
    public Message view(int mid) {
        return msgmapper.view(mid);
    }

    @Override
    public List<Message> list() {
        return msgmapper.list();
    }

    @Override
    public List<Message> list(RowBounds pagination) {
        return msgmapper.list(pagination);
    }

}
